package com.qf.bbapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (TOrderDetail)实体类
 *
 * @author makejava
 * @since 2022-07-03 10:42:43
 */
@Data
@NoArgsConstructor
@TableName(value = "t_order_info")
public class OrderDetail implements Serializable {
    private static final long serialVersionUID = -18354476702444192L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("order_no")
    private String OrderNo;
    @TableField("goods_id")
    private Long goodsId;
    @TableField("goods_num")
    private Integer goodsNum;

    public OrderDetail(String orderNo, Long goodsId, Integer goodsNum) {
        this.OrderNo = orderNo;
        this.goodsId = goodsId;
        this.goodsNum = goodsNum;
    }
}

